package com.linghu.babytun.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.servlet.ModelAndView;

@Controller 
public class GoodsController {

    @GetMapping("/goods")
    public ModelAndView modelAndView(){
        // 修改视图名称，避免和请求路径重复
        ModelAndView mav = new ModelAndView("/goods");
        return mav;
    }
}
